<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1{
            width:300px;
            height:300px;
            
            background-color:rgb(0,255,0);
            background-image: url(../img/01.png);
            background-attachment:fixed;
            margin: 0 auto;
            background-repeat:no-repeat;
        }
        .box2{
            width:100px;
            height:100px;
           
              
        }
        .box3{
            width:300px;
            height:300px;
            background-color: rgb(255,155,0,0.5);
            background-image: url(../img/01.png);
            background-repeat: no-repeat;
            background-position:bottom center ;
        }
        .box4{
            width:500px;
            height:500px;
            background-color: red;
            background-image: url(../img/P09.jpg);
            background-repeat: no-repeat;
            background-size:cover;
        }
    </style>
</head>
<body>
    <div class="box1">
         <div class="box2"></div>
    </div>
    
    <div class="box3"></div><br><br><br><br><br>
    <div class="box4"></div>
   
</body>
</html>